package cn.wolfcode.wolf2w.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@Document("spot")
public class Spot {
    @Id
    private String id;
    private String spotName;
    private Integer count;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date  spottime;
    private String phone;
    private String detailId;

}
